package ckf.man.practice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ckf.man.practice.entity.LateralLine;
import ckf.man.practice.service.LateralLineService;
import ckf.man.practice.mapper.LateralLineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author 昌凯枫
* @description 针对表【lateral_line】的数据库操作Service实现
* @createDate 2024-07-18 13:43:38
*/
@Service
public class LateralLineServiceImpl extends ServiceImpl<LateralLineMapper, LateralLine>
    implements LateralLineService{
    @Autowired
    private LateralLineMapper mapper;

    @Override
    public List<LateralLine> getByEquipment(int equipment_id) {
        return mapper.selectByEquipmentId(equipment_id);
    }

    @Override
    public List<LateralLine> getByScheme(int scheme_id) {
        return mapper.selectBySchemeId(scheme_id);
    }

    @Override
    public List<LateralLine> getByEquipmentAndScheme(int equipment_id, int scheme_id) {
        return mapper.selectByEquipmentIdAndSchemeId(equipment_id,scheme_id);
    }
}




